import request from '@/utils/otherRequest'
/** 通用接口 */

//储罐统计数据
export function totalTankData() {
    return request({
      url: '/screen/getTankStatistics',
      method: 'get'
  })
}
//储罐异常数据
export function totalTankErrorData() {
    return request({
      url: '/screen/getTankAlarmStatistics',
      method: 'get'
  })
}
// 储罐实时数据
export function listTankData(dept) {
    return request({
      url: '/iotbase/taskList/'+dept,
      method: 'get'
  })
}

//气体统计数据
export function totalGasData() {
    return request({
      url: '/screen/getGasStatistics',
      method: 'get'
  })
}
//气体异常数据
export function totalGasErrorData() {
    return request({
      url: '/screen/getGasAlarmStatistics',
      method: 'get'
  })
}

// 气体侦测实时数据
export function listGasData(dept) {
    return request({
      url: '/iotbase/gasList/'+dept,
      method: 'get'
  })
}
